package com.slackerbit.unitdroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class UnitDroid extends Activity implements OnClickListener {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		// Set up click listeners for all the buttons
		View locationButton = findViewById(R.id.location_button);
		locationButton.setOnClickListener(this);
		View timeButton = findViewById(R.id.time_button);
		timeButton.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.location_button:
			Intent iLoc = new Intent(this, Location.class);
			startActivity(iLoc);
			break;
		case R.id.time_button:
			Intent iTime = new Intent(this, Time.class);
			startActivity(iTime);
			break;
		// More buttons go here (if any) ...
		}
	}
}